import Trie from '../../../src/datastructure/tree/Trie'

const trie = new Trie()
trie.add('Samuel')
trie.add('Sam')
trie.add('ZhangBoy')
console.log(trie.contains('Samuel'))
console.log(trie.contains('Sam'))
console.log(trie.startsWith('Sa'))
console.log(trie.startsWith('Sb'))

console.log(trie.search('S.m..l'))
console.log(trie.search('..m'))
